#include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <fstream>
#include <set>

using namespace std;

class Solution {
    public:
        int climbStairs(int n) {
            int a = 1, b = 1;
            if (n < 0) return 0;
            else if ( n == 1) return 1;
            int steps;
            for (int i = 2; i <= n; i++) {
                steps = a+b;     
                a = b;
                b = steps;
            }
            return steps;
        }
};

int main(int argc, char **argv)
{
    Solution mySolution;

    cout << "-----------------Test 1--------------------" << endl;
    for (int i = 1; i < 10; i++) 
    cout << mySolution.climbStairs(i) << endl;


    cout << "-----------------Test 2--------------------" << endl;


    cout << "-----------------Test 3--------------------" << endl;


    cout << "-----------------Test 4--------------------" << endl;


    cout << "-----------------Test 5--------------------" << endl;



}
